<a href="<?php echo url_for('@profile_public?slug=' . $user->getSlug()) ?>">                    
    <?php if ($user->getType() == "Doctor"): ?>
        <?php include_partial("doctor_show/potrait", array("doctor" => $user->getDoctor(), "height" => $height)) ?>
    <?php else: ?>  
        <?php include_partial("gallery_item/potrait", array("user" => $user, 'height' => $height)) ?>          
    <?php endif; ?>                
</a>